public class ShowHandlerDemo {
    public static void main(String[] args) {
        useShowHandler(new ShowHandler() {
            @Override
            public void show() {
                System.out.println("在游泳");
            }
        });
          useShowHandler(()-> System.out.println("在游泳")
        );

    }
    public static void useShowHandler(ShowHandler ShowHander){
        ShowHander.show();
    }
}
